package com.hollycrm.unicom.sheet.taskcount;

import java.io.Serializable;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.hollycrm.springframework.factory.DefaultBeanFactory;
import com.hollycrm.unicom.sheet.BeanResource;

public class TaskCountJob implements Serializable {

    private Log logger = LogFactory.getLog(getClass());

    public void execute() throws Exception {
        ((TaskCountManager) DefaultBeanFactory.getBean(BeanResource.TASKCOUNT_MANAGER)).refreshTaskCount();
        logger.info("job execute success.");
    }

}
